﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Resources;

namespace Luna
{
	public static class UriExtension
	{
		public static ObjType resolveObject<ObjType>(this Uri uri, IAppContext context, object data = null) where ObjType : class {
			object value = Framework.Framework.resolveObject(context, uri, data);
			if (value is ObjType)
				return value as ObjType;
			return default(ObjType);
		}
	}
}
